#ifndef HUB_H
#define HUB_H

#ifndef HEAD_H
#include "../head.h"
#endif

#ifndef FACILITY_H
#include "./Facility.h"
#endif

#ifndef HUB_DEFINE_H
#include "Hub_Define.h"
#endif

#include<QObject>

// 这个类只允许有一个对象
class Hub:public QObject, public Facility{
    Q_OBJECT
public:
    Hub(HubDefine * define, FacilityDirection f_dir,Coordinate coordinate,Cargo_Manager * cargo_manager);
    void processCargo() override;
    void finishProcess() override;
    void sendCargo() override;
signals:
    void store(int num);
};


#endif
